package com.woniu.map.controller;

import com.woniu.internalcommon.dto.ResponseResult;
import com.woniu.map.service.YingYanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/yingyan")
public class YingYanServiceController {
    @Autowired
    public   YingYanService yingYanService;

    @PostMapping("/add")
    public ResponseResult<String> createYingYanService(String name)
    {
        return yingYanService.createYingYanService( name);
    }
}
